package com.yanqu.road.server.logic.activity.orewar.condition;

import com.yanqu.road.entity.activity.ActivityConditionInfo;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.logic.activity.orewar.OreWarActivityData;
import com.yanqu.road.server.manger.activity.orewar.OreWar;
import com.yanqu.road.server.manger.activity.orewar.OreWarActivityRankMgr;
import com.yanqu.road.server.manger.activity.orewar.OreWarMgr;

public abstract class BaseOreWarActivityRankCondition extends BaseOreWarActivityCondition{

    public BaseOreWarActivityRankCondition(GamePlayer player, OreWarActivityData activityData, ActivityConditionInfo conditionInfo) {
        super(player, activityData, conditionInfo);
    }

    protected void rankChange() {
        OreWarActivityRankMgr.changeRank(activityData.getActivityId(), player.getUserInfo(), getValue());
    }
}
